package com.bruce.utils;

import com.google.gson.Gson;

/**
 * @author cc
 * @date 2021/7/24 13:48
 * @Description 对象转换成json格式
 */

public class ObjetToJson {
    public  static String ObjectToJSon(Object o){
        Gson gson = new Gson();
        String s = gson.toJson(o);
        return s;
    }
}
